<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-BR">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  </head>
  <body>
<fieldset>
<legend></legend>
          #{field 'usuario.nome'}
          <div class="control-group ${errors.forKey(field.name)?'error':''}">
            <label for="${field.name}" class="control-label">Nome</label>
            <div class="controls">
              <input type="text" name="${field.name}" value="${field.value}" class="span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
          
          #{field 'usuario.telefone'}
          <div class="control-group ${errors.forKey(field.name)?'error':''}">
            <label for="${field.name}" class="control-label">Telefone</label>
            <div class="controls">
              <input type="text" name="${field.name}" value="${field.value}" class="span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
          
          #{field 'usuario.email'}
          <div class="control-group ${errors.forKey(field.name)?'error':''}">
            <label for="${field.name}" class="control-label">Email</label>
            <div class="controls">
              <input type="text" name="${field.name}" value="${field.value}" class=" span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
                
          #{field 'usuario.senha'}
          <div class="control-group ${errors.forKey(field.name)||errors.forKey('u.confirmaSenha')?'error':''}">
            <label for="${field.name}" class="control-label">Senha</label>
            <div class="controls">
              <input type="password" name="${field.name}" class="span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
          
          #{field 'usuario.confirmaSenha'}
          <div class="control-group ${errors.forKey(field.name)?'error':''}">
            <label for="${field.name}" class="control-label">Confirmação de senha</label>
            <div class="controls">
              <input type="password" name="${field.name}" class="span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
          
          #{field 'usuario.endereco'}
          <div class="control-group ${errors.forKey(field.name)?'error':''}">
            <label for="${field.name}" class="control-label">Endereço</label>
            <div class="controls">
              <input type="text" name="${field.name}" value="${field.value}" class="span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
          
          #{field 'usuario.cpfCnpj'}
          <div class="control-group ${errors.forKey(field.name)?'error':''}">
            <label for="${field.name}" class="control-label">CPF ou CNPJ</label>
            <div class="controls">
              <input type="text" name="${field.name}" value="${field.value}" class="span5 input-large">
              <span class="help-inline">${errors.forKey(field.name)}</span>
            </div>
          </div>
          #{/field}
                    
          <div class="form-actions span6">
            <button class="btn btn-primary" type="submit">Cadastrar</button>
            <button class="btn" type="reset">Desfazer</button>
          </div>
        </fieldset>
        </body>
        </html>